reverse transformation


[ Follow Ups ] [ Post Followup ] [ Björn's 3D-World - Developer's Board ]

Posted by Yiyong from iris2.engr.utk.edu (128.169.133.105) on May 22, 1999 at 15:22:37:

I want to calculate world coordinate of a pixel from its depth value.
Can gluUnproject do this?
Should I pass the value from glReadPixels(GL_DEPTH_COMPONENT) to window depth value "winz" in gluUnproject.
In perspective camera, is this value the range(between pixel and camera) or the z value.
Why the coordinates returned from gluUnproject are always between -1 and 1.
How can I get the real coordinate value.


Thank you.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Björn's 3D-World - Developer's Board ]